projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22b1234
)
repo/commit: Dedup content writing API implementation
author
Colin Walters
<walters@verbum.org>
Tue, 23 May 2017 18:58:03 +0000
(14:58 -0400)
committer
Atomic Bot
<atomic-devel@projectatomic.io>
Thu, 1 Jun 2017 18:43:38 +0000
(18:43 +0000)
Similar to metadata, for `write_content_trusted()` we can just
call `_write_content()` with a `NULL` output checksum.
Closes: #881
Approved by: jlebon
src/libostree/ostree-repo-commit.c
patch
|
blob
|
history
diff --git
a/src/libostree/ostree-repo-commit.c
b/src/libostree/ostree-repo-commit.c
index c788f7e60f685c11107c013bc9eef61603498a04..a6d5f43014e2183395075ba3b1c42ad979cf70ec 100644
(file)
--- a/
src/libostree/ostree-repo-commit.c
+++ b/
src/libostree/ostree-repo-commit.c
@@
-1748,9
+1748,8
@@
ostree_repo_write_content_trusted (OstreeRepo *self,
GCancellable *cancellable,
GError **error)
{
- return write_object (self, OSTREE_OBJECT_TYPE_FILE, checksum,
- object_input, length, NULL,
- cancellable, error);
+ return ostree_repo_write_content (self, checksum, object_input, length,
+ NULL, cancellable, error);
}
/**